<?php defined('IN_SITE') or die('Access Denied');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title><?php echo $title;?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="<?php echo C('site_url');?>static/bootstrap/css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="<?php echo C('site_url');?>static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="<?php echo C('site_url');?>static/bootstrap/js/html5shiv.js"></script>
<![endif]-->

<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo C('site_url');?>static/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo C('site_url');?>static/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo C('site_url');?>static/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="<?php echo C('site_url');?>static/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="<?php echo C('site_url');?>static/ico/favicon.png">
</head>

<body>

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="<?php echo C('site_url');?>index.php"><?php echo $title;?></a>
          <div class="nav-collapse collapse">
            <ul class="nav">
			<?php foreach($menuList as $menu):?>
				<li <?php if($menu['id'] == $menu_id):?>class="active"<?php endif;?>>
				<a href="<?php echo $menu['link'];?>"><?php echo $menu['title'];?></a>
				</li>
			<?php endforeach;?>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

	<div class="container">
		<ul class="links">
			<?php foreach($links as $id => $link):?>
			<li><a href="http://<?php echo $link['url'];?>" target="_blank"><?php echo $link['name'];?></a></li>
			<?php endforeach;?>
		</ul>
	</div> <!-- /container -->
	
	


	<!-- Le javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="<?php echo C('site_url');?>static/bootstrap/js/jquery.js"></script>
	<!--
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-transition.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-alert.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-modal.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-dropdown.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-scrollspy.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-tab.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-tooltip.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-popover.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-button.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-collapse.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-carousel.js"></script>
	<script src="<?php echo C('site_url');?>static/bootstrap/js/bootstrap-typeahead.js"></script>
	-->
	
</body>
</html>
